//
//  NSString+uitil.m
//  NameDetect
//
//  Created by fanwu on 12-8-21.
//  Copyright (c) 2012年 fanwu. All rights reserved.
//

#import "NSString+uitil.h"

@implementation NSString (uitil)
- (BOOL)isNotEmpty
{
	if (self.length == 0) {
		return NO;
	}
	return YES;
}

- (BOOL)isNotBlank
{
	if (![self isNotEmpty]) {
		return NO;
	}else{
		NSString * str = [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
		if ([str isNotEmpty]) {
			return YES;
		}else{
			return NO;
		}
	}
}
@end
